package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

@SuppressWarnings("serial")
@Entity
@Table(name = "phan_quyen")
@NamedQueries({
        @NamedQuery(name = "getAllAccount", query = "SELECT c FROM PhanQuyen c"),
})
public class PhanQuyen implements Serializable {

    public static final String GET_ALL_ACCOUNT = "getAllAccount";

   @Id
   @ManyToOne
   @JoinColumn(name = "MA_TV")
   private ThongTinThanhVien thongTinThanhVien;

   @Column(name = "MAT_KHAU")
   private String matKhau;

   @ManyToOne
   @JoinColumn(name = "MA_CB")
   private CapBac capBac;

   public ThongTinThanhVien getThongTinThanhVien() {
      return thongTinThanhVien;
   }

   public void setThongTinThanhVien(ThongTinThanhVien thongTinThanhVien) {
      this.thongTinThanhVien = thongTinThanhVien;
   }

   public String getMatKhau() {
      return matKhau;
   }

   public void setMatKhau(String matKhau) {
      this.matKhau = matKhau;
   }

   public CapBac getCapBac() {
      return capBac;
   }

   public void setCapBac(CapBac capBac) {
      this.capBac = capBac;
   }
}
